package com.quick.common.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 微信用户表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserWxDto implements Serializable {

	private static final long serialVersionUID = 1072415252315578112L;


	@JSONField(name ="id")
	private long id;


	/**
	 * 缓存的FormId
	 */
	@JSONField(name ="formId")
	private String formId;


	/**
	 * 是FormId还是prepayId
	 */
	@JSONField(name ="isprepay")
	private long isprepay;


	/**
	 * 可用次数，fromId为1，prepay为3，用1次减1
	 */
	@JSONField(name ="useAmount")
	private long useAmount;


	/**
	 * 过期时间，腾讯规定为7天
	 */
	@JSONField(name ="expireTime")
	private java.sql.Timestamp expireTime;


	/**
	 * 微信登录openid
	 */
	@JSONField(name ="openId")
	private String openId;


	/**
	 * 创建时间
	 */
	@JSONField(name ="addTime")
	private java.sql.Timestamp addTime;


	/**
	 * 更新时间
	 */
	@JSONField(name ="updateTime")
	private java.sql.Timestamp updateTime;


	/**
	 * 逻辑删除
	 */
	@JSONField(name ="deleted")
	private long deleted;

}
